﻿using Microsoft.Extensions.DependencyInjection;
using SimpleORM.Infrastructure;
using SimpleORM.Model.DataBaseModel;
using SimpleORM.Repository.IRepository;
using SimpleORM.Service.IService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleORM.Service.Service
{
    [Service(ServiceLifetime.Scoped)]
    public class Getuser2Service : IGetuser2
    {

        private readonly IProductRepository productRepository;
        private readonly IStudentRepository studentRepository;


        public Getuser2Service(IProductRepository _productRepository, IStudentRepository _studentRepository)
        {
            productRepository = _productRepository;
            studentRepository = _studentRepository;
        }
        public string Getusrname()
        {
            var ss = productRepository.GetProduct();

            var xx = studentRepository.GetStudent();


            return "OK";

        }
    }
}
